import { DomUtils } from '../utils/DomUtils';

/**
 * 百家号
 * https://baijiahao.baidu.com/s?id=1792742968320507220
 */
export class BaiJiaHao {

    static hostname = 'baijiahao.baidu.com';

    main() {
        const toTopBtn = document.querySelector('.ZSASH');
        DomUtils.intervalRemove([
            '.-F_R2',
            '._3PLyv',
            '._2v051',
            '.tw0jb',
            '#commentModule',
            '.Wo80H',
        ]);
        document.body.appendChild(toTopBtn);
        DomUtils.setBackground();
        DomUtils.setCss('.q1J1i', { width: '900px', padding: '20px', borderRadius: '5px' });
        DomUtils.setCss('.EaCvy', { width:'100%', margin: '0' });
        DomUtils.setCss('._2jN0Z', { width:'auto', margin: '20px 0', padding: 0 });
        DomUtils.setCss('#header', { marginTop: '10px' });
    }
}